package com.xxxx.yeb.mapper;

import com.xxxx.yeb.pojo.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-07-17
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {



    void deleteRoleByUserId(Integer adminId);



    void insertRoles(@Param("adminId") Integer adminId,@Param("rids") List<Integer> rids);


    void deleteAdminRoleByRoleId(Integer rid);

    void deleteMenuRoleByRoleId(Integer rid);

    void deleteRoleByRoleId(Integer rid);
}
